#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include "Myfont.h"
#define OLED_RESET     4   //不用改
#define screen_x 128
#define screen_y 64
Adafruit_SSD1306 display(screen_x, screen_y, &Wire,OLED_RESET);
 
void setup() 
{
  display.begin(SSD1306_SWITCHCAPVCC,0x3C);
}
 
void loop() 
{
  display.clearDisplay();
  display.drawBitmap(0, 0, num[1], 11, 18, 1); //画出字符对应点阵数据
  display.drawBitmap(11, 0, num[2], 11, 18, 1); //画出字符对应点阵数据
  display.display();//开显示
}